home *** CD-ROM | disk | FTP | other *** search
/ Hráč 2004 August / Hrac_72_2004-08_dvd.iso / dema / Rapid Gun / rg_setup.exe / common / phase_opaque.fx < prev    next >
Text File  |  2004-04-19  |  2KB  |  68 lines

  1. // LF2 Engine
  2. // (C) 2002-3 7FX
  3. //---------------------------------------------------------------------------
  4. // Desc
  5. string desc : Description = "Phase shader, ktery definuje render states pro nepruhledne meshe.";
  6. // vertex format - only if needed
  7. string vf : VertexFormat = "POSITION";
  8. // Shader type phase
  9. string type : Type = "phase"; 
  10. //---------------------------------------------------------------------------
  11. // Matrices for fixed function technique
  12. // const matrix cMtxW : World;
  13. //---------------------------------------------------------------------------
  14. technique phase_opaque
  15. {
  16.     // Only one pass
  17.     pass p0
  18.     <
  19.         bool Drawable = false;
  20.         //string SortType = "FrontToBack";
  21.         string SortType = "MaterialFrontToBack";
  22.     >
  23.     {
  24.         // empty - render states are set in global effect
  25.     }
  26. }
  27.  
  28. //---------------------------------------------------------------------------
  29. // tato technique kresli nejprve do hloubky a pak normalne (spatne vykresluje ostrou alfu)
  30. /*technique phase_opaque
  31. <
  32.     // streams for technique
  33.     string stream1 = "POSITION";
  34. >
  35. {
  36.     // render depth
  37.     pass p0
  38.     <
  39.         bool Drawable = true;
  40.         string streammap = "stream1";
  41.         //string SortType = "FrontToBack";
  42.         //string SortType = "MaterialFrontToBack";
  43.     >
  44.     {
  45.         // matrices needed for drawing
  46.         WorldTransform[0] = <cMtxW>;
  47.     
  48.         ColorWriteEnable = 0x00000000;
  49.         ZEnable = true;
  50.         ZWriteEnable = true;
  51.         ZFunc = LESSEQUAL;
  52.     }
  53.     
  54.     // render mesh
  55.     pass p1
  56.     <
  57.         bool Drawable = false;
  58.         //string SortType = "FrontToBack";
  59.         string SortType = "MaterialFrontToBack";
  60.     >
  61.     {
  62.         ColorWriteEnable = 0x0000000F;
  63.         ZWriteEnable = false;
  64.         ZFunc = EQUAL;
  65.     }
  66. }*/
  67.  
  68.